package chapter23;

import chapter22.ServiceB;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/2/27 16:23
 */
@Aspect({ServiceB.class})
public class ExceptionAspect {
    public static void excetption(Object object, Method method, Object[] args, Throwable e) {
        System.out.println("excetion when calling " + method.getName() + "," + Arrays.toString(args));
    }
}
